tools/xenstore: switch barf[_perror]() to use syslog()
authorJuergen Gross <jgross@suse.com>
Tue, 15 Dec 2020 16:35:39 +0000 (17:35 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 17 Dec 2020 15:04:43 +0000 (15:04 +0000)
commitcbc86340ac75c8ff50e51a16c8fdbdf3d2a7c55d
treeb09d374c7d54a973914296dba76181a8d3436397
parentd81133d45d81d35a4e7445778bfd1179190cbd31
tools/xenstore: switch barf[_perror]() to use syslog()

When xenstored crashes due to an unrecoverable condition it is calling
either barf() or barf_perror() to issue a message and then exit().

Make sure the message is visible somewhere by using syslog()
additionally to xprintf(), as the latter will be visible only with
tracing active.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Julien Grall <jgrall@amazon.com>
tools/xenstore/utils.c